package ru.niir.goodfil;


import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import ru.niir.goodfil.db.GoodfilFactory;
import ru.niir.goodfil.db.handlers.Goodfil;

public class BlockTrigger implements Job {

    private Goodfil gf;


    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        gf = GoodfilFactory.getInstance();
        System.out.println("Recover start");
        gf.blockRecovery();
        System.out.println("Recover end sucessfuly");
    }
}
